﻿using System;

namespace Facade
{
    class Program
    {
        static void Main(string[] args)
        {
            /*FileReader reader = new FileReader();
            String plainText = reader.read("C:\\Users\\myname\\Desktop\\Facade\\Facade\\LocalPrefs.json");
            CipherMachine cipher = new CipherMachine();
            String encryptText = cipher.encrypt(plainText);
            FileWriter writer = new FileWriter();
            writer.write(encryptText, "C:\\Users\\myname\\Desktop\\Facade\\Facade\\LocalPrefsOut.json");
            */
            IEncryptFacade encryptFacade = new EncryptFacade();
            encryptFacade.FileEncrypt("LocalPrefs.json", "LocalPrefsOut.json");
            Console.Write("输出目录为：Facade\\bin\\Debug\\netcoreapp2.1\\LocalPrefsOut.json");
            Console.ReadKey();
        }
    }
}
